package regist;

import regist.dto.UserDto;

/**
 * 抽象观察者类.
 *
 * @author GongXincheng
 * @since 2019-09-23 15:08
 */
public class ObserverEmail extends BaseObserver<UserDto>{

    ObserverEmail(BaseSubject<UserDto> baseSubject) {
        super(baseSubject);
        this.observerName = "初始化邮箱";
    }

    @Override
    void operation() {
        UserDto userDto = baseSubject.getSubjectStatus();
        userDto.setExperience(1000L);
        System.out.println(observerName +"，积分初始化成功...." + userDto);
    }


}
